home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / Fresco / build / Unix / config / cf / Threads.tmpl < prev    next >
Text File  |  1995-07-12  |  2KB  |  70 lines

  1. XCOMM $XConsortium: Threads.tmpl,v 1.3 94/03/30 12:04:19 gildea Exp $
  2.  
  3. /*
  4.  * For a multi-threaded application or library,
  5.  * Define LocalThreadsDefines in your Imakefile (unless you like the
  6.  * project default), then include this file.
  7.  * Everything else should be automatic. 
  8.  */
  9.  
  10. #ifndef LocalThreadsDefines
  11. #ifdef ProjectThreadsDefines
  12. #define LocalThreadsDefines ProjectThreadsDefines
  13. #else
  14. #define LocalThreadsDefines /**/
  15. #endif
  16. #endif
  17.  
  18. #ifndef LocalThreads
  19. #ifdef ThreadedProject
  20. #define LocalThreads ThreadedProject
  21. #else
  22. #define LocalThreads YES
  23. #endif
  24. #endif
  25.  
  26. #ifndef ThreadTypeDefines
  27. #if HasCThreads
  28. #define ThreadTypeDefines -DCTHREADS
  29. #else
  30. #define ThreadTypeDefines /**/
  31. #endif
  32. #endif
  33. #ifndef SystemMTDefines
  34. #define SystemMTDefines /**/
  35. #endif
  36. #ifndef CplusplusSystemMTDefines
  37. #define CplusplusSystemMTDefines /**/
  38. #endif
  39. #ifndef ThreadsCompileFlags
  40. #define ThreadsCompileFlags /**/
  41. #endif
  42. #ifndef ThreadsCplusplusCompileFlags
  43. #define ThreadsCplusplusCompileFlags /**/
  44. #endif
  45.  
  46. #ifndef ThreadsLibraries
  47. #define ThreadsLibraries /**/
  48. #endif
  49. #ifndef ThreadsCplusplusLibraries
  50. #define ThreadsCplusplusLibraries /**/
  51. #endif
  52. #ifndef ThreadsLoadFlags
  53. #define ThreadsLoadFlags ThreadsCompileFlags
  54. #endif
  55. #ifndef ThreadsCplusplusLoadFlags
  56. #define ThreadsCplusplusLoadFlags ThreadsCplusplusCompileFlags
  57. #endif
  58.  
  59. #if LocalThreads
  60.     THREADS_CFLAGS = ThreadsCompileFlags
  61.    THREADS_DEFINES = LocalThreadsDefines ThreadTypeDefines SystemMTDefines
  62.    THREADS_LDFLAGS = ThreadsLoadFlags
  63.       THREADS_LIBS = ThreadsLibraries
  64.  
  65.   THREADS_CXXFLAGS = ThreadsCplusplusCompileFlags
  66. THREADS_CXXDEFINES = LocalThreadsDefines ThreadTypeDefines CplusplusSystemMTDefines
  67. THREADS_CXXLDFLAGS = ThreadsCplusplusLoadFlags
  68.    THREADS_CXXLIBS = ThreadsCplusplusLibraries
  69. #endif
  70.